#include <iostream>

using namespace std;

int main()
{
    int n, sum = 1, a = 0;
    cin >> n;
    for (int i = 0; i < n - 1; i++)
    {
        sum += 1;
        sum *= 2;
    }
    cout << sum << endl;
    return 0;
}